package DVD;

/**
 * 租赁系统的业务逻辑处理
 */
public class RentService {

    RentDao rentDao = new RentDao();


    public People login(String username,String password){

        for (int i = 0; i <rentDao.userCount ; i++) {
            if(username.equals(rentDao.people[i].getUsername())&&
                    password.equals(rentDao.people[i].getPassword())){
                System.out.println("登陆成功");
                return rentDao.people[i];

            }
        }
        System.out.println("登陆失败");
        return null;
    }
}
